﻿
@{
    var AppBarList = ViewBag.AppBarList as List<AppBarViewModel>;
    var WebModel = ViewBag.WebModel as WebModel;
    string AdminSite=ViewBag.AdminSite;
}
<!DOCTYPE html>
<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>@ViewBag.Title</title>
    <link href="~/Content/static/css/main.css" rel="stylesheet" />
    <link href="~/layui/css/layui.css" rel="stylesheet" />
    <script src="~/layui/layui.js"></script>
    <meta name="viewport" content="width=device-width, initial-scale=1.0, minimum-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1">
</head>
<body>
    <div class="site-nav-bg">
        <div class="site-nav w1200">
            <p class="sn-back-home">
                <i class="layui-icon layui-icon-home"></i>
                <a href="#">首页</a>
            </p>
            <div class="sn-quick-menu">
                <div class="login"><a href="login.html">登录</a></div>
                <div class="sp-cart"><a href="/Mobile">移动端</a><span></span></div>
            </div>
        </div>
    </div>
    <div class="header">
        <div class="headerLayout w1200">
            <div class="headerCon">
                <h1 class="mallLogo">
                    <a href="#" title="">
                        <img src="@(Html.ImgSrc(WebModel.SiteLogo,AdminSite))" style="width: 266px; height: 92px;">
                    </a>
                </h1>
                <div class="mallSearch">
                    <form action="/Search" class="layui-form" novalidate>
                        <input type="text" name="key" required lay-verify="required" autocomplete="off" class="layui-input" value="@ViewBag.Key" placeholder="请输入需要的商品">
                        <button class="layui-btn" lay-submit lay-filter="formDemo">
                            <i class="layui-icon layui-icon-search"></i>
                        </button>
                        <input type="hidden" name="" value="">
                    </form>
                </div>
            </div>
        </div>
    </div>
    <div class="content">
        <div class="main-nav">
            <div class="inner-cont0">
                <div class="inner-cont1 w1200">
                    <div class="inner-cont2">
                        @foreach (var item in AppBarList)
                        {
                            <a href="@item.Link" @(ViewBag.AppBarCode == item.Code ? "class=active" : "")>@item.Name</a>
                        }
                        @*<a href="commodity.html" class="active">首页</a>
                            <a href="buytoday.html">疯抢榜</a>
                            <a href="information.html">9块9包邮</a>
                            <a href="about.html">咚咚抢</a>
                            <a href="about.html">好货精选</a>*@
                    </div>
                </div>
            </div>
        </div>
        @RenderBody()
    </div>

    <div class="footer">
        <div class="ng-promise-box">
            <div class="ng-promise w1200">
                <p class="text">
                    <a class="icon1" href="javascript:;">人工精选</a>
                    <a class="icon2" href="javascript:;">全场免邮</a>
                    <a class="icon3" style="margin-right: 0" href="javascript:;">品质保证</a>
                </p>
            </div>
        </div>
        <div class="mod_help w1200">
            <p>
                <a href="javascript:;">关于我们</a>
                <span>|</span>
                <a href="javascript:;">帮助中心</a>
                <span>|</span>
                <a href="javascript:;">售后服务</a>
                <span>|</span>
                <a href="javascript:;">优惠资讯</a>
                <span>|</span>
                <a href="javascript:;">关    于</a>
            </p>
            <p class="coty">
                <a href="http://www.beian.miit.gov.cn">@WebModel.Record </a>
            
            @WebModel.CopyRight
            </p>
        </div>
    </div>
    @RenderSection("scripts", required: false)
    <script>

    </script>
</body>
</html>
